<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		
		<form action="注册成功.html" onsubmit="return check();">
			用户名:<input type="text" name="username" id="username" /><br />
			密码:<input type="password" name="password" id="password"  /><br />
			真实名字:<input type="text" name="password" id="realname"  /><br />
			邮箱:<input type="text" name="password" id="email"  /><br />
			电话:<input type="text" name="password" id="tel"  /><br />
			<input type="submit" value="注册" />
			<input type="reset" value="重置" />
			
		</form>
		
		<script type="text/javascript">
			function check()
			{
				if(username.value == null || username.value.length<1)
				{
					alert("用户名不能为空");
					return false;
				}
				
				// 判断密码
				
				// 判断邮箱
				
				// 判断电话
				
				return true;
			}
		</script>
	</body>
</html>